import 'package:flutter/material.dart';
import 'package:flutter_architecture/src/features/weather/presentation/weather_page.dart';

class WeatherApp extends StatelessWidget {
  const WeatherApp({super.key});

  @override
  Widget build(BuildContext context) {
    final textStyleWithShadow = TextStyle(color: Colors.white, shadows: [
      BoxShadow(
        color: Colors.black12.withOpacity(0.25),
        spreadRadius: 1,
        blurRadius: 4,
        offset: const Offset(0, 0.5),
      )
    ]);
    return MaterialApp(
      title: 'Weather App',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
          brightness: Brightness.light,
          textTheme: TextTheme(
              displayLarge: textStyleWithShadow,
              displayMedium: textStyleWithShadow,
              displaySmall: textStyleWithShadow,
              headlineMedium: textStyleWithShadow,
              headlineSmall: textStyleWithShadow,
              titleMedium: const TextStyle(color: Colors.white),
              bodyLarge: const TextStyle(color: Colors.white),
              bodyMedium: const TextStyle(color: Colors.white),
              bodySmall: const TextStyle(color: Colors.white70, fontSize: 13))),
      home: const WeatherPage(city: 'London'),
    );
  }
}
